load("@rules_rust//rust:defs.bzl", "rust_doc_test", "rust_library")

package(default_visibility = ["//visibility:public"])

DEPENDENCIES = [
    # Keep sorted.
    "//rs/crypto/internal/crypto_lib/seed",
    "//rs/crypto/internal/crypto_lib/threshold_sig/bls12_381",
    "//rs/crypto/internal/crypto_lib/types",
    "//rs/crypto/tree_hash",
    "//rs/crypto/utils/threshold_sig_der",
    "//rs/types/types",
    "@crate_index//:leb128",
    "@crate_index//:rand",
    "@crate_index//:serde",
    "@crate_index//:serde_cbor",
]

rust_library(
    name = "test-utils",
    srcs = glob(["src/**"]),
    crate_name = "ic_certification_test_utils",
    version = "0.1.0",
    deps = DEPENDENCIES,
)

rust_doc_test(
    name = "certification_test_utils_doc_test",
    crate = ":test-utils",
)
